<script>
    var items = <?= $items; ?>;
    var preview = <?= isset($_GET['preview']) ? 1 : 0; ?>;
</script>


<div class="clearfix mask-height">

    <? $this->load->view('parts/googlemap') ?>

    <div class="pull-left form-holder">

        <div id="form" class="gradient form-vertical frm_color">

            <? $this->load->view('parts/form', array('text' => lang('form.search'))) ?>

        </div>

        <div class="googlemap gsearch frm_color clearfix">

            <h2><a href="javascript:" class="show_map" data-id="ALL" title="<?= lang('map.show_on_map'); ?>"><?= lang('map.show_on_map'); ?></a></h2>

            <a href="javascript:" class="show_map image_map" data-id="ALL" title="<?= lang('map.show_on_map'); ?>">
                <img src="<?= base_url() ?>assets/img/google-map.png">
            </a>

            <p class="left"><?= lang('map_private'); ?></p>

        </div>

        <? $this->load->view('parts/filter') ?>

    </div>

    <div class="pull-left results-holder">

        <h1><?= $h1_title ?></h1>

        <div id="results">
            <div class="page_navigation clearfix"></div>

            <div class="clearfix pager_hold" id="pager_hold">

                <div class="col">

                    <label><?= lang('hotell.sort_by_upper') ?></label>

                    <select name="sort_by" id="sort_by" class="dropdownized">
                        <option value="recommended"><?= lang('recommended') ?></option>
                        <? if (!isset($_GET['preview'])): ?>
                        <option value="price"><?= lang('price') ?></option>
                        <? endif; ?>
                        <option value="number_of_stars"><?= lang('filter.stars') ?></option>
                        <!--<option value="object_name">Name</option>-->
                    </select>

                </div>

            </div>

            <div id="fake-loader"><img src="<?= base_url() ?>assets/img/ajax-loader.gif" /></div>

            <ul id="paging_cont">
                <? $this->load->view('parts/results') ?>
            </ul>
            <div class="page_navigation clearfix"></div>
        </div>

    </div>

</div>

<?
$this->load->view('parts/subscripbe')?>